<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Document</title>
</head>
<body>
	
	<!--------------------------------------公用分类--------------------------------------->
<?php 
//	实例化分类表
	$cate = new \Common\Model\cate;
//	先排序  根据排好的数据再在里面去出前5条
	$topModel  = $cate->orderBy('cid','ASC')->limit(5)->get();
//	p($topModel);


	$cateModel = $cate->orderBy('cid','ASC')->get();
//	p($cateModel);
	$oldModel = Data::channelLevel($cateModel, $pid = 0, $html = "&nbsp;", $fieldPri = 'cid', $fieldPid = 'pid', $level = 1);


 ?>
	
	
	
<!--分类条开始-->
	<div id="fenlei">
		<div class="zuo">
			<div id="sp_sp">
				<h2 class="shangpin">全部商品分类<i class="fa fa-chevron-down fa-lg" ></i></h2>
				<div class="fenlei">
					<ul>
					{{foreach from="$oldModel" value="$v"}}
						<li>
							<i class="fa fa-mobile fa-lg shouji"></i>
						{{foreach from="$v['_data']" value="$vv"}}
							<a href="{{U('List/index',array('cid'=>$vv['cid']))}}">{{$vv['cname']}} /</a>
						{{endforeach}}
							
							<div class="erji_1" >
								<dl class="erji_11">
									<dt class="ff">
										<a href="">服务保障</a>
									</dt>
									<dd class="goa"></dd>
								</dl>
							{{foreach from="$v['_data']" value="$vv"}}
								<dl class="shen">
									<dt class="me">
										<a href="{{U('List/index',array('cid'=>$vv['cid']))}}">{{$vv['cname']}}</a>
									</dt>
									<dd class="ll">
										<p>
									{{foreach from="$vv['_data']" value="$vvv"}}
											<a href="{{U('List/index',array('cid'=>$vvv['cid']))}}">{{$vvv['cname']}}</a>
									{{endforeach}}
										</p>
									</dd>
								</dl>
							{{endforeach}}
						</div>
						</li>
					{{endforeach}}
						
					</ul>
					<div class="qiang">
						<a href="">
							<img src="./Public/img/biao.gif" alt="" />
						</a>
					</div>
				</div>
			</div>
			
			
			
		</div>
		<ul class="you">
			<li><a href="{{U('Index/index')}}" class="shouye">首页</a></li>
			{{foreach from="$topModel" value="$v"}}
				<li><a href="{{U('List/index',array('cid'=>$v['cid']))}}">{{$v['cname']}}</a></li>
			{{endforeach}}
			<div class="sheng">
				<a href="">2016无线购物节 全场19元起</a>
			</div>
		</ul>			
	</div>	
<!--分类条结束-->
	
		
	
	
</body>
</html>